import Vue from 'vue'
import App from './App.vue'
//引入全局样式
import "@/style/index.less"
//引入路由
import router from '@/router'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import './assets/iconfont/iconfont.css'
import AMap from 'vue-amap'
Vue.use(AMap)
AMap.initAMapApiLoader({
  // 高德的key
  key: '6ef89f73ee756f84cfbe9eb39302d26c',
  // 插件集合
  plugin: ['AMap.Autocomplete', 'AMap.PlaceSearch', 'AMap.Scale', 'AMap.OverView', 'AMap.ToolBar', 'AMap.MapType', 'AMap.PolyEditor', 'AMap.CircleEditor']
})
Vue.use(ElementUI);

Vue.config.productionTip = false
import Component from '@/components'
Vue.use(Component) // 注册自己的插件

new Vue({
  router,
  render: h => h(App),
}).$mount('#app')
